package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcVisitorMapper;
import com.csun.cmny.provider.model.domain.OmcVisitor;
import com.csun.cmny.provider.model.dto.VisitorQueryDto;
import com.csun.cmny.provider.model.vo.visitorVo.visitorVo;
import com.csun.cmny.provider.service.OmcVisitorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcVisitorServiceImpl extends BaseService<OmcVisitor> implements OmcVisitorService {

    @Resource
    private OmcVisitorMapper omcVisitorMapper;
    @Override
    public List<visitorVo> selectVisitor(VisitorQueryDto visitorQueryDto) {
        return omcVisitorMapper.selectVisitor(visitorQueryDto);
    }
}
